package com.example.testxml;


import java.util.List;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ListView;

public class MainActivity extends Activity {

	private static final String FILE_NAME = "rss.xml";
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        BaseFeedParser parser = new XmlPullFeedParser(getAssets(), FILE_NAME);
        List<Message> values =  parser.parse();
        ListView mainListView = (ListView) findViewById(R.id.mainListView);
		mainListView.setAdapter(new CustomArrayAdapter(this, values));
    }

}
